home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.cs.arizona.edu
/
ftp.cs.arizona.edu.tar
/
ftp.cs.arizona.edu
/
icon
/
newsgrp
/
group03a.txt
/
000082_icon-group-sender_Tue Jun 24 09:45:41 2003.msg
< prev
next >
Wrap
Internet Message Format
|
2003-12-22
|
2KB
Return-Path: <icon-group-sender>
Received: (from root@localhost)
by baskerville.CS.Arizona.EDU (8.11.1/8.11.1) id h5OGiVI09407
for icon-group-addresses; Tue, 24 Jun 2003 09:44:31 -0700 (MST)
Message-Id: <200306241644.h5OGiVI09407@baskerville.CS.Arizona.EDU>
From: "Frank J. Lhota" <NOSPAM.lhota.adarose@verizon.net>
X-Newsgroups: comp.lang.icon
Subject: Re: Problem at int/bigint boundary
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
Date: Mon, 23 Jun 2003 20:43:09 GMT
X-Complaints-To: abuse@verizon.net
To: icon-group@cs.arizona.edu
X-Spam-Status: No, hits=-0.5 required=5.0
tests=PRIORITY_NO_NAME,QUOTED_EMAIL_TEXT,REFERENCES
version=2.55
X-Spam-Checker-Version: SpamAssassin 2.55 (1.174.2.19-2003-05-19-exp)
Errors-To: icon-group-errors@cs.arizona.edu
Status: RO
"Walter Faxon" <wfaxon@gis.net> wrote in message
news:57958c65.0306221432.5d95e5be@posting.google.com...
> Hello. I don't know if this has been fixed in later versions/ports,
> but in the OS/2 non-graphical version of Icon 9.3.1 (using icont), the
> following tiny program crashes:
>
> procedure main()
> local x
> x := -2147483648
> x := -x
> end
>
> I found this when abs(x) was called.
A while back, I found a number of arithmetic errors around the boundaries
between C integers and large integers. I devised a fix and submitted to the
Icon project. My arithmetic fixes were incorporated into an official version
of Icon (I forget which version). At any rate, this works OK for Icon 9.4.1.